<template>
	<uni-popup ref="alertDialog" class="popup-box" :is-mask-click="false">
		<view class="content flex flex-col  align-center">
			<view class="title">
				退回原因
			</view>
			<uni-easyinput :inputBorder="false" class="textarea-box" type="textarea" v-model="value"
				placeholder="请输入退回原因"></uni-easyinput>
			<view class="btn-box flex justify-between">
				<view class="btn-item flex-1 flex justify-center align-center" @tap="close()">
					取消
				</view>
				<view class="btn-item flex-1 btn-item-active flex justify-center align-center" @tap="confirm()">
					确定
				</view>
			</view>
		</view>
	</uni-popup>
</template>

<script>
	export default {
		data() {
			return {
				value: ''
			}
		},
		methods: {
			open() {
				this.$refs.alertDialog.open('center')
			},
			close() {
				this.$refs.alertDialog.close()
			},
			confirm() {
				console.log(this.value, "val")
			}
		}
	}
</script>

<style lang="scss" scoped>
	.popup-box {

		.content {
			width: 600rpx;
			height: 488rpx;
			background: linear-gradient(180deg, #DDE6FE, #fff);
			overflow: hidden;
			border-radius: 20rpx;
			.title {
				padding: 43rpx 0 33rpx 0;
				font-weight: bold;
				font-size: 36rpx;
				color: #333333;
				text-align: center;
			}

			.textarea-box {
				width: 504rpx;
				height: 238rpx;
				padding: 10rpx 29rpx;
				background: #FFFFFF;
				box-shadow: 2rpx 2rpx 10rpx 0rpx rgba(224, 224, 224, 0.45);
				border-radius: 10rpx;
			}
		}
	}

	.btn-box {
		width: 100%;
		border-top: 1rpx solid #F0F0F0;
		box-sizing: border-box;
		margin-top: 40rpx;
		.btn-item {
			font-weight: 500;
			font-size: 32rpx;
			color: #333333;
			padding: 35rpx 0;
		}

		.btn-item-active {
			border-left: 1rpx solid #F0F0F0;
			color: #308DFF;
		}
	}
</style>